﻿namespace FieldTools.Client.Model.Window
{
    /// <summary>
    /// js执行器数据模型
    /// </summary>
    public class JSInterpreterModel
    {
        /// <summary>
        /// 文件路径
        /// </summary>
        public string? FilePath { get; set; }
        /// <summary>
        /// js字符串
        /// </summary>
        public string? JSStr { get; set; }
        /// <summary>
        /// js入口函数
        /// </summary>
        public string? JSEntFunc { get; set; }
        /// <summary>
        /// 参数，json格式
        /// </summary>
        public string? ParmsJSON { get; set; }
        /// <summary>
        /// 执行结果
        /// </summary>
        public string? Result { get; set; }
        /// <summary>
        /// 使用参数模板时候，所需参数的数量
        /// </summary>
        public int? ParmsCount { get; set; }
        /// <summary>
        /// 参数生成模式
        /// </summary>
        public int? ParmsType { get; set; } = 2;
    }
}
